package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "活动实体")
public class Activity {
    @TableId(type = IdType.AUTO)
    @Schema(description = "活动ID", example = "1")
    private Long id;

    @Schema(description = "所属社团ID", required = true, example = "1")
    private Long clubId;

    @Schema(description = "活动标题", required = true, example = "校园秋景外拍")
    private String title;

    @Schema(description = "活动描述", example = "捕捉秋天光影")
    private String description;

    @Schema(description = "开始时间", required = true, example = "2025-07-16T10:27:31")
    private Date startTime;

    @Schema(description = "结束时间", required = true, example = "2025-07-16T13:27:31")
    private Date endTime;

    @Schema(description = "活动地点", example = "图书馆前草坪")
    private String location;

    @Schema(description = "最大参与人数", example = "30")
    private Integer maxParticipants;

    @Schema(description = "当前参与人数", example = "28")
    private Integer currentParticipants;
}